package com.qf.tenant.manager.api;

import com.qf.common.bean.R;
import com.qf.tenant.manager.service.DeviceService;
import com.qf.tenant.manager.service.DeviceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 设备类型
 * @author 千锋健哥
 */
@RestController
@RequestMapping("/tenant/device-type")
public class DeviceTypeController {

    @Autowired
    private DeviceTypeService deviceTypeService;

    @GetMapping("/all")
    public R<List> findAll() {
        R<List> result = deviceTypeService.findAll();
        return result;
    }
}
